package sz.com.postoffice.jxyzwgcase.dao.node;


import org.apache.ibatis.annotations.Param;
import sz.com.postoffice.jxyzwgcase.pojo.ForecastVisitLog;
import java.util.List;

/**
 * 描述:
 *
 * @author baiyu, du
 * @date 2020/11/30 11:25
 */
public interface ForecastVisitLogDao {
    /**
     * 单条新增插入数据
     * @param forecastVisitLog
     * @return
     * @throws Exception
     * @throws
     */
    void add(ForecastVisitLog forecastVisitLog) ;

    /**
     * 根据userCode查询历史访问记录
     * @param userCode
     * @return
     */
    List<ForecastVisitLog> findByUserCode(String userCode);

    /**
     * 根据forecastVisitLog查询历史访问记录
     * @param forecastVisitLog
     * @return
     */
    ForecastVisitLog findByEntity(ForecastVisitLog forecastVisitLog);
    void update(ForecastVisitLog forecastVisitLog);
    Integer findCountByEmpCodeList(@Param("list") List<String> adoIds,
                                   @Param("startTime") String startTime, @Param("endTime") String endTime);
}
